@import url(./_set.scss);

.top-adv{
    position: relative;
    width: 100%;
    height: 100px;
    background: #01a1ff;
    .adv{
        width: 1190px;
        height: 100px;
        display: block;
        margin: 0 auto;
    }
    .adv-close{
        position: absolute;
        top: 3px;
        right: 3px;
        width: 15px;
        height: 15px;
        overflow: hidden;
        background: url(../images/icon.png) -241px -145px;
    }
}

header{
    background-color: #f3f3f3;
    height: 35px;
    border-top: 1px solid #ebebeb;
    .toolbar-left{
        float: left;
    }
    .toolbar-right{
        float: right;
        #showTotalQty{
            font-weight: normal;
            margin-left: 5px;
        }
        em{
            display: inline-block;
            width: 21px;
            height: 14px;
            background: url(../images/shopping-car.png) no-repeat;
        }
    }
}

.hotColor{
    color: #ff6600;
}

.bar-node-box{
    height: 100%;
    float: left;
    .bar-node{
        width: 65px;
        padding: 0 10px;
        line-height: 35px;
        height: 35px;
    }
}

.search{
    width: 100%;
    height: 100px;
    .suning-logo{
        position: absolute;
        top: 10px;
        left: 0;
        img{
            width: 190px;
            height: 90px;
        }
    }
    .bg-search{
        position: relative;
        width: 600px;
        height: 100px;
        margin: 0 auto;
        .g-search{
            position: relative;
            float: right;
            width: 540px;
            height: 40px;
            margin: 30px 0 0 0;
            border-radius: 12px;
            .search-keyword-box{
                width: 388px;
                height: 36px;
                border: none;
                float: left;
                padding: 0 0 0 30px;
                border-radius: 12px 0 0 12px;
                border: 2px solid #ff8000;
                border-right: 0;
                position: absolute;
                .icon-search{
                    position: absolute;
                    top: 9px;
                    left: 9px;
                }
                .search-keyword{
                    width: 380px;
                    padding: 9px 10px 9px 0;
                    height: 18px;
                    line-height: 18px;
                    margin-top: 0;
                    border: 0;
                    color: #BBB;
                    font-size: 12px;
                }
            }
            .search-res{
                position: absolute;
                left: 0;
                top: 41px;
                width: 419px;
                height: 264px;
                background-color: #ffffff;
                border: 1px solid #e4e4e4;
                z-index: 99;
                overflow: hidden;
                display: none;
                ul{
                    padding: 5px 0 0 10px;
                    li{
                        font-size: 14px;
                        height: 25px;
                        line-height: 25px;
                        cursor: pointer;
                    }
                }
                .search-res-close{
                    position: absolute;
                    right: 0;
                    top: 0;
                    cursor: pointer;
                }
            }
            .search-btn{
                width: 120px;
                height: 40px;
                background: #ff8000;
                font-size: 18px;
                letter-spacing: 2px;
                text-indent: 2px;
                color: #FFF;
                border: 0;
                border-radius: 0 12px 12px 0;
                cursor: pointer;
                position: absolute;
                right: 0;
                top: 0;
            }
        }
        .search-hotwords{
            float: right;
            width: 540px;
            height: 18px;
            margin-top: 5px;
            .hotwords{
                float: left;
                white-space: nowrap;
                font-size: 12px;
                font-weight: 300;
                margin: 3px 0 3px -11px;
                padding: 0 20px 0 10px;
                border-left: 1px solid #ddd;
                height: 12px;
                line-height: 12px;
            }
            :first-child{
                border-left: none;
            }
        }
    }
}

@mixin nav-content {
    width: 100%;
    height: 476px;
    background-color: #fff;
    position: absolute;
    top: 38px;
}

.nav-bar{
    width: 100%;
    height: 38px;
    .ng-nav{
        width: 785px;
        height: 38px;
        margin-left: 198px;
        line-height: 38px;
        overflow: hidden;
        .title-pic{
            width: 110px;
            height: 38px;
            padding: 0;
            img{
                display: block;
                width: 100%;
                height: 38px;
            }
        }
        li{
            position: relative;
            float: left;
            display: block;
            font-weight: bold;
            padding: 0 12px 0 13px;
            a{
                font-size: 15px;
                color: #333;
            }
            span{
                position: absolute;
                width: 25px;
                height: 8px;
                bottom: -8px;
                left: 50%;
                margin-left: -12px;
                background: url(../images/icon.png) -37px 0;
                transition: all .5s;
            }
            &:hover{
                a{
                    color: #ff6600;
                }
                span{
                    bottom: 0;
                }
            }
        }
        .hot, .new{
            position: absolute;
            height: 17px;
            width: 14px;
            right: -2px;
            top: 0;
            
        }
        .hot{
            background: url(../images/icon.png) -345px -213px;
        }
        .new{
            background: url(../images/icon.png) -19px 0;
        }
    }
    .nav-bar-left{
        position: absolute;
        width: 200px;
        height: 514px;
        top: 0;
        left: -2px;
        z-index: 999;
        .docu-list-top{
            position: absolute;
            display: block;
            width: 166px;
            padding-left: 34px;
            height: 38px;
            top: 0;
            line-height: 38px;
            background: #ff8000;
            color: #fff;
            font-size: 13px;
            font-weight: bold;
            border-radius: 12px 12px 0 0;
            i{
                position: absolute;
                display: block;
                width: 14px;
                height: 14px;
                top: 12px;
                left: 12px;
                background: url(../images/icon.png) -928px 0;
            }
        }
        .docu-list{
            @include nav-content();
            .category-lists{
                position: absolute;
                left: 0;
                top: 1px;
                width: 200px;
                height: 476px;
                .category-list{
                    position: relative;
                    width: 166px;
                    // overflow: hidden;
                    padding: 0 6px 0 28px;
                    height: 31px;
                    line-height: 29px;
                    img{
                        position: absolute;
                        width: 16px;
                        height: 16px;
                        left: 6px;
                        top: 7px;
                    }
                    a{
                        display: inline-block;
                        height: 100%;
                        vertical-align: middle;
                        color: #000;
                        font-size: 14px;
                        text-decoration: none;
                        letter-spacing: 1px;
                        &:hover{
                            color: #ff6600;
                        }
                    }
                    em{
                        font-size: 14px;
                        height: 12px;
                        width: 1px;
                        margin-left: -3px;
                        font-style: normal;
                    }
                    .cat-det{
                        position: absolute;
                        left: 200px;
                        width: 989px;
                        height: 476px;
                        background-color: #f3f3f3;
                        display: none;
                    }
                }
            }
        }
    }
    @mixin nav-bar-right-img-p {
        img{
            display: block;
            width: 36px;
            height: 36px;
            margin: 6px auto;
        }
        p{
            height: 20px;
            max-width: 66px;
            line-height: 20px;
            font-size: 14px;
            color: #333;
            text-align: center;
        }
    }
    .nav-bar-right{
        position: absolute;
        width: 196px;
        height: 514px;
        top: 0;
        right: 2px;
        z-index: 99;
        .public-notice{
            position: absolute;
            display: block;
            width: 196px;
            height: 38px;
            top: 0;
            border-radius: 12px 12px 0 0;
            img{
                display: block;
                width: 196px;
                height: 39px;
            }
        }
        .nav-bar-right-content{
            @include nav-content();
            overflow: hidden;
            .top-box{
                overflow: hidden;
                position: relative;
                width: 196px;
                height: 225px;
                .user-img{
                    position: absolute;
                    width: 48px;
                    height: 48px;
                    left: 10px;
                    top: 10px;
                    background: url(../images/tool-logo.png);
                    z-index: 1;
                    border: 1px solid #f7f7f7;
                    border-radius: 50%;
                    background-size: 100% 100%;
                }
                .not-login{
                    position: absolute;
                    left: 0;
                    top: 0;
                    width: 100%;
                    height: 100%;
                    .btn-group{
                        float: left;
                        margin-top: 15px;
                        margin-left: 66px;
                        width: 125px;
                        height: 38px;
                        font-size: 12px;
                        color: #333;
                        .hi{
                            width: 122px;
                            height: 18px;
                            overflow: hidden;
                            white-space: nowrap;
                            text-overflow: ellipsis;
                            margin-bottom: 5px;
                        }
                        a{
                            color: #333;
                        }
                    }
                    .new, .supper{
                        display: block;
                        width: 156px;
                        height: 24px;
                        border-radius: 3px;
                        text-align: center;
                        line-height: 24px;
                        margin-left: 20px;
                    }
                    .new{
                        color: #fff;
                        margin-top: 70px;
                        background: #ff8000;
                    }
                    .supper{
                        color: #fada99;
                        margin-top: 10px;
                        background-image: linear-gradient(-90deg,#373a77 3%,#17125b 100%);
                    }
                }
                .three-entry{
                    position: absolute;
                    width: 196px;
                    height: 85px;
                    left: 0;
                    bottom: 0;
                    background: #fff;
                    a{
                        float: left;
                        width: 65px;
                        height: 85px;
                        @include nav-bar-right-img-p();
                        &:hover p{
                            color: #ff6600;
                        }
                    }
                }
            }
            .bot-box{
                position: relative;
                height: 250px;
                width: 196px;
                border-top: 1px solid #f2f2f2;
                ul{
                    margin-right: -2px;
                    li{
                        float: left;
                        width: 65px;
                        height: 85px;
                        border-width: 0 1px 1px 0;
                        border-style: solid;
                        border-color: #f2f2f2;
                        a{
                            display: block;
                            overflow: hidden;
                            width: 100%;
                            height: 100%;
                            @include nav-bar-right-img-p();
                            &:hover{
                                box-shadow: 0 4px 8px 0 rgba(0,0,0,0.1);
                                p{
                                    color: #ff6600;
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}

@mixin banner-Btn {
    width: 28px;
    height: 72px;
    position: absolute;
    top: 180px;
    z-index: 9;
    background: url(../images/icon.png);
    cursor: pointer;
    display: none;
}

.banner-wrapper{
    width: 100%;
    height: 476px;
    .container{
        width: 100%;
        height: 100%;
        position: relative;
        overflow: hidden;
        .wrapper{
            height: 100%;
            .slider{
                width: 100%;
                height: 100%;
                position: absolute;
                top: 0;
                left: 0;
                opacity: 0;
                transition: opacity .5s;
                a{
                    display: block;
                    width: 794px;
                    height: 100%;
                    margin: 0 auto;
                    img{
                        display: block;
                        width: 100%;
                        height: 100%;
                    }
                }
            }
            .active {
                z-index: 2;
                opacity: 1;
            }
        }
        // banner 前后按钮
        .button-prev{
            @include banner-Btn();
            left: 50%;
            border-radius:  0 6px 6px 0;
            margin-left: -397px;
            background-position: -1152px 0;
        }
        .button-next{
            @include banner-Btn();
            right: 50%;
            border-radius:  6px 0 0 6px;
            margin-right: -397px;
            background-position: -1152px -72px;
        }
        // banner 导航栏
        .banner-nav{
            width: 202px;
            height: 4px;
            margin: 0 auto;
            position: absolute;
            top: 345px;
            left: 50%;
            margin-left: -101px;
            z-index: 9;
            opacity: .8;
            .page-item{
                float: left;
                width: 20px;
                height: 4px;
                background: rgba(255,255,255,0.5);
                margin-right: 6px;
            }
            :last-child{
                margin-right: 0;
            }
            .active{
                background-color: #ff8000;
            }
        }
        // banner 底部四张图
        .four-banner{
            position: absolute;
            bottom: 6px;
            left: 50%;
            margin-left: -393px;
            width: 786px;
            height: 112px;
            overflow: hidden;
            z-index: 99;
            li{
                float: left;
                position: relative;
                background: #fff;
                margin-left: 2px;
                cursor: default;
                border-radius: 6px;
                img{
                    display: block;
                    width: 194px;
                }
            }
        }
    }
}